package com.lianxi

/**
  * Created by adengdeng on 2017/8/5 
  */
object Lx9 {

  def main(args: Array[String]): Unit = {
    /*
      获取字符串的首字母和尾字母
     */
    println("Hello"(0))
    println("Hello".take(1))

    println("Hello".reverse(0))
    println("Hello".takeRight(1))
  }
}
